package com.dreamfire.display.display2D
{
	import com.dreamfire.core.Client;
	import com.dreamfire.data.definition.SpriteDef;
	import com.dreamfire.data.event.SceneEvent;
	import com.dreamfire.data.map.MapModel;
	import com.dreamfire.display.display2D.core.Tile2D;
	
	import flash.geom.Vector3D;
	import flash.utils.Dictionary;
	
	public class Scene2D
	{
		//----------------------------------------------------------------------------------------
		//
		//  Variable
		//
		//----------------------------------------------------------------------------------------
		//场景中所有精灵数据
		private var _spriteList:Dictionary = null;
		
		//----------------------------------------------------------------------------------------
		//
		//  Constructor
		//
		//----------------------------------------------------------------------------------------
		public function Scene2D()
		{
			_spriteList = new Dictionary(true);
			Client.instance.eventDispatcher.addEventListener(SceneEvent.SCENE_UPDATE, update);
		}

		//----------------------------------------------------------------------------------------
		//
		//  Setter & Getter
		//
		//----------------------------------------------------------------------------------------
		public function get spriteList():Dictionary
		{
			return _spriteList;
		}

		public function set spriteList(value:Dictionary):void
		{
			_spriteList = value;
		}
		
		//----------------------------------------------------------------------------------------
		//
		//  Performance
		//
		//----------------------------------------------------------------------------------------
		public function update(event:SceneEvent):void
		{
			if(event.data == null) return;
			//在场景内数据更新时对精灵列表进行更新
		}
	}
}